home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / sspgv.z / sspgv
Encoding:
Text File  |  2002-10-03  |  5.6 KB  |  199 lines

  1.  
  2.  
  3.  
  4. SSSSSSSSPPPPGGGGVVVV((((3333SSSS))))                                                            SSSSSSSSPPPPGGGGVVVV((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SSPGV - compute all the eigenvalues and, optionally, the eigenvectors of
  10.      a real generalized symmetric-definite eigenproblem, of the form
  11.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE SSPGV( ITYPE, JOBZ, UPLO, N, AP, BP, W, Z, LDZ, WORK, INFO )
  15.  
  16.          CHARACTER     JOBZ, UPLO
  17.  
  18.          INTEGER       INFO, ITYPE, LDZ, N
  19.  
  20.          REAL          AP( * ), BP( * ), W( * ), WORK( * ), Z( LDZ, * )
  21.  
  22. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  23.      These routines are part of the SCSL Scientific Library and can be loaded
  24.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  25.      directs the linker to use the multi-processor version of the library.
  26.  
  27.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  28.      4 bytes (32 bits). Another version of SCSL is available in which integers
  29.      are 8 bytes (64 bits).  This version allows the user access to larger
  30.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  31.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  32.      only one of the two versions; 4-byte integer and 8-byte integer library
  33.      calls cannot be mixed.
  34.  
  35. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  36.      SSPGV computes all the eigenvalues and, optionally, the eigenvectors of a
  37.      real generalized symmetric-definite eigenproblem, of the form
  38.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are
  39.      assumed to be symmetric, stored in packed format, and B is also positive
  40.      definite.
  41.  
  42.  
  43. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  44.      ITYPE   (input) INTEGER
  45.              Specifies the problem type to be solved:
  46.              = 1:  A*x = (lambda)*B*x
  47.              = 2:  A*B*x = (lambda)*x
  48.              = 3:  B*A*x = (lambda)*x
  49.  
  50.      JOBZ    (input) CHARACTER*1
  51.              = 'N':  Compute eigenvalues only;
  52.              = 'V':  Compute eigenvalues and eigenvectors.
  53.  
  54.      UPLO    (input) CHARACTER*1
  55.              = 'U':  Upper triangles of A and B are stored;
  56.              = 'L':  Lower triangles of A and B are stored.
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSSSSSPPPPGGGGVVVV((((3333SSSS))))                                                            SSSSSSSSPPPPGGGGVVVV((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      N       (input) INTEGER
  75.              The order of the matrices A and B.  N >= 0.
  76.  
  77.      AP      (input/output) REAL array, dimension
  78.              (N*(N+1)/2) On entry, the upper or lower triangle of the
  79.              symmetric matrix A, packed columnwise in a linear array.  The j-
  80.              th column of A is stored in the array AP as follows:  if UPLO =
  81.              'U', AP(i + (j-1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i
  82.              + (j-1)*(2*n-j)/2) = A(i,j) for j<=i<=n.
  83.  
  84.              On exit, the contents of AP are destroyed.
  85.  
  86.      BP      (input/output) REAL array, dimension (N*(N+1)/2)
  87.              On entry, the upper or lower triangle of the symmetric matrix B,
  88.              packed columnwise in a linear array.  The j-th column of B is
  89.              stored in the array BP as follows:  if UPLO = 'U', BP(i + (j-
  90.              1)*j/2) = B(i,j) for 1<=i<=j; if UPLO = 'L', BP(i + (j-1)*(2*n-
  91.              j)/2) = B(i,j) for j<=i<=n.
  92.  
  93.              On exit, the triangular factor U or L from the Cholesky
  94.              factorization B = U**T*U or B = L*L**T, in the same storage
  95.              format as B.
  96.  
  97.      W       (output) REAL array, dimension (N)
  98.              If INFO = 0, the eigenvalues in ascending order.
  99.  
  100.      Z       (output) REAL array, dimension (LDZ, N)
  101.              If JOBZ = 'V', then if INFO = 0, Z contains the matrix Z of
  102.              eigenvectors.  The eigenvectors are normalized as follows:  if
  103.              ITYPE = 1 or 2, Z**T*B*Z = I; if ITYPE = 3, Z**T*inv(B)*Z = I.
  104.              If JOBZ = 'N', then Z is not referenced.
  105.  
  106.      LDZ     (input) INTEGER
  107.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  108.              'V', LDZ >= max(1,N).
  109.  
  110.      WORK    (workspace) REAL array, dimension (3*N)
  111.  
  112.      INFO    (output) INTEGER
  113.              = 0:  successful exit
  114.              < 0:  if INFO = -i, the i-th argument had an illegal value
  115.              > 0:  SPPTRF or SSPEV returned an error code:
  116.              <= N:  if INFO = i, SSPEV failed to converge; i off-diagonal
  117.              elements of an intermediate tridiagonal form did not converge to
  118.              zero.  > N:   if INFO = n + i, for 1 <= i <= n, then the leading
  119.              minor of order i of B is not positive definite.  The
  120.              factorization of B could not be completed and no eigenvalues or
  121.              eigenvectors were computed.
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSSSSSPPPPGGGGVVVV((((3333SSSS))))                                                            SSSSSSSSPPPPGGGGVVVV((((3333SSSS))))
  137.  
  138.  
  139.  
  140. SEE ALSO
  141.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  142.  
  143.      This man page is available only online.
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.